/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package view;

import java.awt.image.BufferedImage;
import java.util.Calendar;

/**
 *
 * @author Máté
 */
public class GUIPicture {

    private Integer id;
    private BufferedImage image;
    private Integer x;
    private Integer y;
    private Long lastModified;
    private final static Integer pictureSize = 40;

    public GUIPicture(Integer id, BufferedImage image) {
        this.x = 0;
        this.y = 0;
        this.id = id;
        this.image = image;
        this.lastModified = Calendar.getInstance().getTime().getTime();
    }

    public Integer getId() {
        return id;
    }

    public BufferedImage getImage() {
        return image;
    }

    public Integer getX() {
        return x;
    }

    public Integer getY() {
        return y;
    }

    public static Integer getPictureSize() {
        return pictureSize;
    }

    public Long getLastModified() {
        return lastModified;
    }

    public void setX(Integer x) {
        this.x = x;
    }

    public void setY(Integer y) {
        this.y = y;
    }

    public void setLastModified(Long currentTime) {
        this.lastModified = currentTime;
    }

    public void setImage(BufferedImage image) {
        this.image = image;
    }
}
